<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>计算 12 个月的日期</title>
</head>
<body>
<script>
    var date = new Date();
    date.setMonth(date.getMonth() + 12);
    document.write(date.toLocaleString());
</script>
</body>
</html>